<template>
    <div class="wraper">
        <swiper ref="mySwiper" :options="swiperOptions">
            <swiper-slide v-for="item of swiperList" :key="item.id">
                <img :src="item.imgUrl" class="swiper-img">
            </swiper-slide>
            <div class="swiper-pagination" slot="pagination"></div>
        </swiper>
    </div>
</template>
<style lang="stylus" scoped>
.wraper >>> .swiper-pagination-bullet-active
    background :#fff !important
.wraper
    width: 100%
    height: 0
    overflow: hidden
    padding-bottom :31.25%
    background :#ccc
    .swiper-img
        width: 100%
</style>
<script>
export default {
  name: 'carrousel',
  props: {
    swiperList: Array
  },
  data() {
    return {
      swiperOptions: {
        pagination: '.swiper-pagination',
        loop: true
      }
    }
  }
}
</script>
